package com.vegetable.modules.entity.finance.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 支出明细VO
 */
@Data
@ApiModel(value = "支出明细VO", description = "支出明细VO")
public class ExpenseDetailVO {

    @ApiModelProperty(value = "支出类型")
    private String expenseType;

    @ApiModelProperty(value = "支出日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date expenseDate;

    @ApiModelProperty(value = "金额")
    private BigDecimal amount;

    @ApiModelProperty(value = "描述")
    private String description;

    @ApiModelProperty(value = "关联单号")
    private String referenceNo;
}